package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.StudyPlanTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 * 用户学习进度
 */

@Data
@TableName(value = "STUDY_PLAN_USER",autoResultMap = true)
@Entity(name = "STUDY_PLAN_USER")
@AccEntity(value = "用户学习进度", type = EntityType.SERVICE_ENTITY)
public class StudyPlanUser extends DomainBaseEntity<StudyPlanUser> {

    /**
     * 计划id
     */
    @Column()
    private Long planId;

    /**
     * 学习内容
     */
    @Column()
    private StudyPlanTypeEnum type;

    /**
     * 关联id，可能是战例可能是战术
     * 根据学习内容
     */
    @Column()
    private Long fid;

    /**
     * 用户id
     */
    @Column()
    private Long userId;

    /**
     * 学习时长-秒
     */
    @Column()
    private Integer learningTime;

    /**
     * 是否完成
     */
    @Column()
    private Boolean isComplete;
}
